import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SWuXinAttribute
    
    export  class SWuXinAttribute extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SWuXinAttribute();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.fightValue);
            arg1.writeInt(this.wuxin);
            arg1.writeInt(this.skill);
            arg1.writeInt(this.energy);
            arg1.writeFloat(this.fact);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.fightValue = arg1.readInt();
            this.wuxin = arg1.readInt();
            this.skill = arg1.readInt();
            this.energy = arg1.readInt();
            this.fact = arg1.readFloat();
            return;
        }

        public /* const */_type: int=20203;

        public /* var */fightValue: int;

        public /* var */wuxin: int;

        public /* var */skill: int;

        public /* var */energy: int;

        public /* var */fact: number;

        public static /* var */_regist: SWuXinAttribute;
    }

            SWuXinAttribute._regist = new SWuXinAttribute(true);
        